/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package register;

import base.UserPreferences;
import data.IUserPreferencesRepository;
import data.UserPreferencesRepositoryXml;
import exception.RepositoryException;

/**
 *
 * @author tacio
 */
public class UserPreferencesRegister {
    
    private IUserPreferencesRepository userPreferencesRepository;

    public UserPreferencesRegister() throws RepositoryException {
        this.userPreferencesRepository = new UserPreferencesRepositoryXml();
    }

    public UserPreferences getUserPreferences() throws RepositoryException {
        return userPreferencesRepository.getUserPreferences();
    }

    public void setUserPreferences(UserPreferences preferences) throws RepositoryException {
        userPreferencesRepository.setUserPreferences(preferences);
    }

}
